const getTouchData = (endX, endY, startX, startY) => {
  let turn = "";
  if (endX - startX > 20 && Math.abs(endY - startY) < 70) {      //右滑
    turn = "right";
  } else if (endX - startX < -20 && Math.abs(endY - startY) < 70) {   //左滑
    turn = "left";
  }
  return turn;
}

module.exports = {
  getTouchData
}